<#include "../public/header.html">
<link href="public/themes/talent.css" rel="stylesheet" type="text/css" />
    <div id="editdlg">
    </div>
        <div id="tb" style="padding:5px 5px; border-bottom: dashed #d2d2d2 1px;margin-bottom: 5px;">
            
        </div>
        <div class="appmsg_list" id="appmsgList">
                    <div class="appmsg_col tj_item" style="margin-top: 10px;">
                        <div class="inner" id="appmsgList1">
                                <span class="create_access">
                                    <i class="icon36_common add_gray" style="margin-top: 20px;">
                                    </i>
                                    <a href="/bk/admin/WXTalent/addone"><i class="icon_appmsg_create"></i><strong>单图文消息</strong></a>
                                        <a href="/bk/admin/WXTalent/addmore"><i class="icon_appmsg_create multi"></i><strong>多图文消息</strong></a>
                                    </span>
                        </div>
                    </div>
                                    </div>

    <script type="text/javascript">
       function add_one(){
       $("#editdlg").dialog({
                    title:"添加",
                    iconCls: 'icon-edit',
                    width: 960,
                    height: 500,
                    closed: false,
                    cache: false,
                    modal: true,
                    href:"admin/WXTalent/addone",
                    onLoad:function() {
                        $.messager.progress('close');
                    },
                    buttons: [{
                        text: '取消',
                        iconCls:'icon-cancel',
                        handler: function () {
                            $('#editForm').form('clear');
                            $("#editdlg").dialog("close");
                        }
                    },{
                        text: '保存',
                        iconCls: 'icon-ok',
                        handler: function () {
                            $('#editForm').form('submit',{
                                url:"admin/WXSetting/save",
                                dataType:"json",
                                onSubmit:function(){
                                    return $(this).form('enableValidation').form('validate');
                                },
                                success:function(data){
                                    var data = eval('(' + data + ')');  // change the JSON string to javascript object

                                    alert(data.msg);
                                    $("#editdlg").dialog("close");
                                    $("#list").datagrid("reload");
                                }
                            });
                        }
                    }]
                });
       }
    </script>
    <#include "../public/footer.html">